package com.summer.data.type;

/**
 * @author 345480567@qq.com
 */
public class Tuple2<T> {
    public T t1;
    public T t2;

    public String toString() {
        return String.format("Tuple[%s, %s]", t1.toString(), t2.toString());
    }

    public static <T> Tuple2<T> create(T first, T second) {
        Tuple2<T> t = new Tuple2<>();
        t.t1 = first;
        t.t2 = second;
        return t;
    }

}
